#!/bin/sh

export PATH=$PATH:/usr/sbin:/sbin

SCIPTDIR=$(cd $(dirname "$0") && pwd -P)
TC_HOME=$SCIPTDIR/..

echo $TC_HOME
cd $TC_HOME/tomcat/bin
export JAVA_OPTS="$JAVA_OPTS ${APM_CONSOLE_MEM} -Djava.library.path=$(pwd) -Duser.dir="$(pwd)"/.. -Des.config.path=/../es/config/ -Dapm.config.file=../conf/configure.properties -Des.database.dir=$(pwd)/../../webapps/front/WEB-INF/database -Dscripts.path=/../webapps/front/WEB-INF/scripts -Xdebug -Xrunjdwp:transport=dt_socket,address=8003,server=y,suspend=n -Dapm.protocol.host=tcp://brokertcpreplaycollect:1108"
./catalina.sh run 
